package com.example.gybicycle.entity;

import com.example.gybicycle.common.entity.Entity;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

@Data
@Schema(name ="会员")
public class Member    extends Entity {
    @Schema(description = "会员id")
    private String id;
    @Schema(description = "会员名")
    private String name;
    @Schema(description = "微信号")
    private String wxNo;
    @Schema(description = "电话号码")
    private String telphone;
    @Schema(description = "openid")
    private String wxOpenid;
    @Schema(description = "生日")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;
    @Schema(description = "性别")
    private String sex;
    @Schema(description = "会员等级 0 普通会员")
    private Integer grade;
    @Schema(description = "入会时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date joinDate;

}